home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / docshell / nsIContentViewer.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  16KB  |  411 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIContentViewer.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIContentViewer_h__
  6. #define __gen_nsIContentViewer_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMDocument; /* forward declaration */
  18.  
  19. class nsISHEntry; /* forward declaration */
  20.  
  21. class nsIWidget;
  22. class nsIDeviceContext;
  23. struct nsRect;
  24.  
  25. /* starting interface:    nsIContentViewer */
  26. #define NS_ICONTENTVIEWER_IID_STR "6a7ddb40-8a9e-4576-8ad1-71c5641d8780"
  27.  
  28. #define NS_ICONTENTVIEWER_IID \
  29.   {0x6a7ddb40, 0x8a9e, 0x4576, \
  30.     { 0x8a, 0xd1, 0x71, 0xc5, 0x64, 0x1d, 0x87, 0x80 }}
  31.  
  32. class NS_NO_VTABLE nsIContentViewer : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWER_IID)
  36.  
  37.   /* [noscript] void init (in nsIWidgetPtr aParentWidget, in nsIDeviceContextPtr aDeviceContext, [const] in nsRectRef aBounds); */
  38.   NS_IMETHOD Init(nsIWidget * aParentWidget, nsIDeviceContext * aDeviceContext, const nsRect & aBounds) = 0;
  39.  
  40.   /* attribute nsISupports container; */
  41.   NS_IMETHOD GetContainer(nsISupports * *aContainer) = 0;
  42.   NS_IMETHOD SetContainer(nsISupports * aContainer) = 0;
  43.  
  44.   /* void loadStart (in nsISupports aDoc); */
  45.   NS_IMETHOD LoadStart(nsISupports *aDoc) = 0;
  46.  
  47.   /* void loadComplete (in unsigned long aStatus); */
  48.   NS_IMETHOD LoadComplete(PRUint32 aStatus) = 0;
  49.  
  50.   /* boolean permitUnload (); */
  51.   NS_IMETHOD PermitUnload(PRBool *_retval) = 0;
  52.  
  53.   /* void pageHide (in boolean isUnload); */
  54.   NS_IMETHOD PageHide(PRBool isUnload) = 0;
  55.  
  56.   /**
  57.    * All users of a content viewer are responsible for calling both
  58.    * close() and destroy(), in that order. 
  59.    *
  60.    * close() should be called when the load of a new page for the next
  61.    * content viewer begins, and destroy() should be called when the next
  62.    * content viewer replaces this one.
  63.    *
  64.    * |historyEntry| sets the session history entry for the content viewer.  If
  65.    * this is null, then Destroy() will be called on the document by close().
  66.    * If it is non-null, the document will not be destroyed, and the following
  67.    * actions will happen when destroy() is called (*):
  68.    *  - Sanitize() will be called on the viewer's document
  69.    *  - The content viewer will set the contentViewer property on the
  70.    *    history entry, and release its reference (ownership reversal).
  71.    *  - hide() will be called, and no further destruction will happen.
  72.    *
  73.    *  (*) unless the document is currently being printed, in which case
  74.    *      it will never be saved in session history.
  75.    *
  76.    */
  77.   /* void close (in nsISHEntry historyEntry); */
  78.   NS_IMETHOD Close(nsISHEntry *historyEntry) = 0;
  79.  
  80.   /* void destroy (); */
  81.   NS_IMETHOD Destroy(void) = 0;
  82.  
  83.   /* void stop (); */
  84.   NS_IMETHOD Stop(void) = 0;
  85.  
  86.   /* attribute nsIDOMDocument DOMDocument; */
  87.   NS_IMETHOD GetDOMDocument(nsIDOMDocument * *aDOMDocument) = 0;
  88.   NS_IMETHOD SetDOMDocument(nsIDOMDocument * aDOMDocument) = 0;
  89.  
  90.   /* [noscript] void getBounds (in nsRectRef aBounds); */
  91.   NS_IMETHOD GetBounds(nsRect & aBounds) = 0;
  92.  
  93.   /* [noscript] void setBounds ([const] in nsRectRef aBounds); */
  94.   NS_IMETHOD SetBounds(const nsRect & aBounds) = 0;
  95.  
  96.   /**
  97.    * The previous content viewer, which has been |close|d but not
  98.    * |destroy|ed.
  99.    */
  100.   /* [noscript] attribute nsIContentViewer previousViewer; */
  101.   NS_IMETHOD GetPreviousViewer(nsIContentViewer * *aPreviousViewer) = 0;
  102.   NS_IMETHOD SetPreviousViewer(nsIContentViewer * aPreviousViewer) = 0;
  103.  
  104.   /* void move (in long aX, in long aY); */
  105.   NS_IMETHOD Move(PRInt32 aX, PRInt32 aY) = 0;
  106.  
  107.   /* void show (); */
  108.   NS_IMETHOD Show(void) = 0;
  109.  
  110.   /* void hide (); */
  111.   NS_IMETHOD Hide(void) = 0;
  112.  
  113.   /* attribute boolean enableRendering; */
  114.   NS_IMETHOD GetEnableRendering(PRBool *aEnableRendering) = 0;
  115.   NS_IMETHOD SetEnableRendering(PRBool aEnableRendering) = 0;
  116.  
  117.   /* attribute boolean sticky; */
  118.   NS_IMETHOD GetSticky(PRBool *aSticky) = 0;
  119.   NS_IMETHOD SetSticky(PRBool aSticky) = 0;
  120.  
  121.   /* boolean requestWindowClose (); */
  122.   NS_IMETHOD RequestWindowClose(PRBool *_retval) = 0;
  123.  
  124.   /**
  125.    * Attach the content viewer to its DOM window and docshell.
  126.    * @param aState A state object that might be useful in attaching the DOM
  127.    *               window.
  128.    */
  129.   /* void open (in nsISupports aState); */
  130.   NS_IMETHOD Open(nsISupports *aState) = 0;
  131.  
  132.   /**
  133.    * Clears the current history entry.  This is used if we need to clear out
  134.    * the saved presentation state.
  135.    */
  136.   /* void clearHistoryEntry (); */
  137.   NS_IMETHOD ClearHistoryEntry(void) = 0;
  138.  
  139. };
  140.  
  141. /* Use this macro when declaring classes that implement this interface. */
  142. #define NS_DECL_NSICONTENTVIEWER \
  143.   NS_IMETHOD Init(nsIWidget * aParentWidget, nsIDeviceContext * aDeviceContext, const nsRect & aBounds); \
  144.   NS_IMETHOD GetContainer(nsISupports * *aContainer); \
  145.   NS_IMETHOD SetContainer(nsISupports * aContainer); \
  146.   NS_IMETHOD LoadStart(nsISupports *aDoc); \
  147.   NS_IMETHOD LoadComplete(PRUint32 aStatus); \
  148.   NS_IMETHOD PermitUnload(PRBool *_retval); \
  149.   NS_IMETHOD PageHide(PRBool isUnload); \
  150.   NS_IMETHOD Close(nsISHEntry *historyEntry); \
  151.   NS_IMETHOD Destroy(void); \
  152.   NS_IMETHOD Stop(void); \
  153.   NS_IMETHOD GetDOMDocument(nsIDOMDocument * *aDOMDocument); \
  154.   NS_IMETHOD SetDOMDocument(nsIDOMDocument * aDOMDocument); \
  155.   NS_IMETHOD GetBounds(nsRect & aBounds); \
  156.   NS_IMETHOD SetBounds(const nsRect & aBounds); \
  157.   NS_IMETHOD GetPreviousViewer(nsIContentViewer * *aPreviousViewer); \
  158.   NS_IMETHOD SetPreviousViewer(nsIContentViewer * aPreviousViewer); \
  159.   NS_IMETHOD Move(PRInt32 aX, PRInt32 aY); \
  160.   NS_IMETHOD Show(void); \
  161.   NS_IMETHOD Hide(void); \
  162.   NS_IMETHOD GetEnableRendering(PRBool *aEnableRendering); \
  163.   NS_IMETHOD SetEnableRendering(PRBool aEnableRendering); \
  164.   NS_IMETHOD GetSticky(PRBool *aSticky); \
  165.   NS_IMETHOD SetSticky(PRBool aSticky); \
  166.   NS_IMETHOD RequestWindowClose(PRBool *_retval); \
  167.   NS_IMETHOD Open(nsISupports *aState); \
  168.   NS_IMETHOD ClearHistoryEntry(void); 
  169.  
  170. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  171. #define NS_FORWARD_NSICONTENTVIEWER(_to) \
  172.   NS_IMETHOD Init(nsIWidget * aParentWidget, nsIDeviceContext * aDeviceContext, const nsRect & aBounds) { return _to Init(aParentWidget, aDeviceContext, aBounds); } \
  173.   NS_IMETHOD GetContainer(nsISupports * *aContainer) { return _to GetContainer(aContainer); } \
  174.   NS_IMETHOD SetContainer(nsISupports * aContainer) { return _to SetContainer(aContainer); } \
  175.   NS_IMETHOD LoadStart(nsISupports *aDoc) { return _to LoadStart(aDoc); } \
  176.   NS_IMETHOD LoadComplete(PRUint32 aStatus) { return _to LoadComplete(aStatus); } \
  177.   NS_IMETHOD PermitUnload(PRBool *_retval) { return _to PermitUnload(_retval); } \
  178.   NS_IMETHOD PageHide(PRBool isUnload) { return _to PageHide(isUnload); } \
  179.   NS_IMETHOD Close(nsISHEntry *historyEntry) { return _to Close(historyEntry); } \
  180.   NS_IMETHOD Destroy(void) { return _to Destroy(); } \
  181.   NS_IMETHOD Stop(void) { return _to Stop(); } \
  182.   NS_IMETHOD GetDOMDocument(nsIDOMDocument * *aDOMDocument) { return _to GetDOMDocument(aDOMDocument); } \
  183.   NS_IMETHOD SetDOMDocument(nsIDOMDocument * aDOMDocument) { return _to SetDOMDocument(aDOMDocument); } \
  184.   NS_IMETHOD GetBounds(nsRect & aBounds) { return _to GetBounds(aBounds); } \
  185.   NS_IMETHOD SetBounds(const nsRect & aBounds) { return _to SetBounds(aBounds); } \
  186.   NS_IMETHOD GetPreviousViewer(nsIContentViewer * *aPreviousViewer) { return _to GetPreviousViewer(aPreviousViewer); } \
  187.   NS_IMETHOD SetPreviousViewer(nsIContentViewer * aPreviousViewer) { return _to SetPreviousViewer(aPreviousViewer); } \
  188.   NS_IMETHOD Move(PRInt32 aX, PRInt32 aY) { return _to Move(aX, aY); } \
  189.   NS_IMETHOD Show(void) { return _to Show(); } \
  190.   NS_IMETHOD Hide(void) { return _to Hide(); } \
  191.   NS_IMETHOD GetEnableRendering(PRBool *aEnableRendering) { return _to GetEnableRendering(aEnableRendering); } \
  192.   NS_IMETHOD SetEnableRendering(PRBool aEnableRendering) { return _to SetEnableRendering(aEnableRendering); } \
  193.   NS_IMETHOD GetSticky(PRBool *aSticky) { return _to GetSticky(aSticky); } \
  194.   NS_IMETHOD SetSticky(PRBool aSticky) { return _to SetSticky(aSticky); } \
  195.   NS_IMETHOD RequestWindowClose(PRBool *_retval) { return _to RequestWindowClose(_retval); } \
  196.   NS_IMETHOD Open(nsISupports *aState) { return _to Open(aState); } \
  197.   NS_IMETHOD ClearHistoryEntry(void) { return _to ClearHistoryEntry(); } 
  198.  
  199. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  200. #define NS_FORWARD_SAFE_NSICONTENTVIEWER(_to) \
  201.   NS_IMETHOD Init(nsIWidget * aParentWidget, nsIDeviceContext * aDeviceContext, const nsRect & aBounds) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aParentWidget, aDeviceContext, aBounds); } \
  202.   NS_IMETHOD GetContainer(nsISupports * *aContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContainer(aContainer); } \
  203.   NS_IMETHOD SetContainer(nsISupports * aContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContainer(aContainer); } \
  204.   NS_IMETHOD LoadStart(nsISupports *aDoc) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadStart(aDoc); } \
  205.   NS_IMETHOD LoadComplete(PRUint32 aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadComplete(aStatus); } \
  206.   NS_IMETHOD PermitUnload(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->PermitUnload(_retval); } \
  207.   NS_IMETHOD PageHide(PRBool isUnload) { return !_to ? NS_ERROR_NULL_POINTER : _to->PageHide(isUnload); } \
  208.   NS_IMETHOD Close(nsISHEntry *historyEntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(historyEntry); } \
  209.   NS_IMETHOD Destroy(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Destroy(); } \
  210.   NS_IMETHOD Stop(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(); } \
  211.   NS_IMETHOD GetDOMDocument(nsIDOMDocument * *aDOMDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDOMDocument(aDOMDocument); } \
  212.   NS_IMETHOD SetDOMDocument(nsIDOMDocument * aDOMDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDOMDocument(aDOMDocument); } \
  213.   NS_IMETHOD GetBounds(nsRect & aBounds) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBounds(aBounds); } \
  214.   NS_IMETHOD SetBounds(const nsRect & aBounds) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBounds(aBounds); } \
  215.   NS_IMETHOD GetPreviousViewer(nsIContentViewer * *aPreviousViewer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreviousViewer(aPreviousViewer); } \
  216.   NS_IMETHOD SetPreviousViewer(nsIContentViewer * aPreviousViewer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPreviousViewer(aPreviousViewer); } \
  217.   NS_IMETHOD Move(PRInt32 aX, PRInt32 aY) { return !_to ? NS_ERROR_NULL_POINTER : _to->Move(aX, aY); } \
  218.   NS_IMETHOD Show(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Show(); } \
  219.   NS_IMETHOD Hide(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Hide(); } \
  220.   NS_IMETHOD GetEnableRendering(PRBool *aEnableRendering) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnableRendering(aEnableRendering); } \
  221.   NS_IMETHOD SetEnableRendering(PRBool aEnableRendering) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnableRendering(aEnableRendering); } \
  222.   NS_IMETHOD GetSticky(PRBool *aSticky) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSticky(aSticky); } \
  223.   NS_IMETHOD SetSticky(PRBool aSticky) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSticky(aSticky); } \
  224.   NS_IMETHOD RequestWindowClose(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestWindowClose(_retval); } \
  225.   NS_IMETHOD Open(nsISupports *aState) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(aState); } \
  226.   NS_IMETHOD ClearHistoryEntry(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearHistoryEntry(); } 
  227.  
  228. #if 0
  229. /* Use the code below as a template for the implementation class for this interface. */
  230.  
  231. /* Header file */
  232. class nsContentViewer : public nsIContentViewer
  233. {
  234. public:
  235.   NS_DECL_ISUPPORTS
  236.   NS_DECL_NSICONTENTVIEWER
  237.  
  238.   nsContentViewer();
  239.  
  240. private:
  241.   ~nsContentViewer();
  242.  
  243. protected:
  244.   /* additional members */
  245. };
  246.  
  247. /* Implementation file */
  248. NS_IMPL_ISUPPORTS1(nsContentViewer, nsIContentViewer)
  249.  
  250. nsContentViewer::nsContentViewer()
  251. {
  252.   /* member initializers and constructor code */
  253. }
  254.  
  255. nsContentViewer::~nsContentViewer()
  256. {
  257.   /* destructor code */
  258. }
  259.  
  260. /* [noscript] void init (in nsIWidgetPtr aParentWidget, in nsIDeviceContextPtr aDeviceContext, [const] in nsRectRef aBounds); */
  261. NS_IMETHODIMP nsContentViewer::Init(nsIWidget * aParentWidget, nsIDeviceContext * aDeviceContext, const nsRect & aBounds)
  262. {
  263.     return NS_ERROR_NOT_IMPLEMENTED;
  264. }
  265.  
  266. /* attribute nsISupports container; */
  267. NS_IMETHODIMP nsContentViewer::GetContainer(nsISupports * *aContainer)
  268. {
  269.     return NS_ERROR_NOT_IMPLEMENTED;
  270. }
  271. NS_IMETHODIMP nsContentViewer::SetContainer(nsISupports * aContainer)
  272. {
  273.     return NS_ERROR_NOT_IMPLEMENTED;
  274. }
  275.  
  276. /* void loadStart (in nsISupports aDoc); */
  277. NS_IMETHODIMP nsContentViewer::LoadStart(nsISupports *aDoc)
  278. {
  279.     return NS_ERROR_NOT_IMPLEMENTED;
  280. }
  281.  
  282. /* void loadComplete (in unsigned long aStatus); */
  283. NS_IMETHODIMP nsContentViewer::LoadComplete(PRUint32 aStatus)
  284. {
  285.     return NS_ERROR_NOT_IMPLEMENTED;
  286. }
  287.  
  288. /* boolean permitUnload (); */
  289. NS_IMETHODIMP nsContentViewer::PermitUnload(PRBool *_retval)
  290. {
  291.     return NS_ERROR_NOT_IMPLEMENTED;
  292. }
  293.  
  294. /* void pageHide (in boolean isUnload); */
  295. NS_IMETHODIMP nsContentViewer::PageHide(PRBool isUnload)
  296. {
  297.     return NS_ERROR_NOT_IMPLEMENTED;
  298. }
  299.  
  300. /* void close (in nsISHEntry historyEntry); */
  301. NS_IMETHODIMP nsContentViewer::Close(nsISHEntry *historyEntry)
  302. {
  303.     return NS_ERROR_NOT_IMPLEMENTED;
  304. }
  305.  
  306. /* void destroy (); */
  307. NS_IMETHODIMP nsContentViewer::Destroy()
  308. {
  309.     return NS_ERROR_NOT_IMPLEMENTED;
  310. }
  311.  
  312. /* void stop (); */
  313. NS_IMETHODIMP nsContentViewer::Stop()
  314. {
  315.     return NS_ERROR_NOT_IMPLEMENTED;
  316. }
  317.  
  318. /* attribute nsIDOMDocument DOMDocument; */
  319. NS_IMETHODIMP nsContentViewer::GetDOMDocument(nsIDOMDocument * *aDOMDocument)
  320. {
  321.     return NS_ERROR_NOT_IMPLEMENTED;
  322. }
  323. NS_IMETHODIMP nsContentViewer::SetDOMDocument(nsIDOMDocument * aDOMDocument)
  324. {
  325.     return NS_ERROR_NOT_IMPLEMENTED;
  326. }
  327.  
  328. /* [noscript] void getBounds (in nsRectRef aBounds); */
  329. NS_IMETHODIMP nsContentViewer::GetBounds(nsRect & aBounds)
  330. {
  331.     return NS_ERROR_NOT_IMPLEMENTED;
  332. }
  333.  
  334. /* [noscript] void setBounds ([const] in nsRectRef aBounds); */
  335. NS_IMETHODIMP nsContentViewer::SetBounds(const nsRect & aBounds)
  336. {
  337.     return NS_ERROR_NOT_IMPLEMENTED;
  338. }
  339.  
  340. /* [noscript] attribute nsIContentViewer previousViewer; */
  341. NS_IMETHODIMP nsContentViewer::GetPreviousViewer(nsIContentViewer * *aPreviousViewer)
  342. {
  343.     return NS_ERROR_NOT_IMPLEMENTED;
  344. }
  345. NS_IMETHODIMP nsContentViewer::SetPreviousViewer(nsIContentViewer * aPreviousViewer)
  346. {
  347.     return NS_ERROR_NOT_IMPLEMENTED;
  348. }
  349.  
  350. /* void move (in long aX, in long aY); */
  351. NS_IMETHODIMP nsContentViewer::Move(PRInt32 aX, PRInt32 aY)
  352. {
  353.     return NS_ERROR_NOT_IMPLEMENTED;
  354. }
  355.  
  356. /* void show (); */
  357. NS_IMETHODIMP nsContentViewer::Show()
  358. {
  359.     return NS_ERROR_NOT_IMPLEMENTED;
  360. }
  361.  
  362. /* void hide (); */
  363. NS_IMETHODIMP nsContentViewer::Hide()
  364. {
  365.     return NS_ERROR_NOT_IMPLEMENTED;
  366. }
  367.  
  368. /* attribute boolean enableRendering; */
  369. NS_IMETHODIMP nsContentViewer::GetEnableRendering(PRBool *aEnableRendering)
  370. {
  371.     return NS_ERROR_NOT_IMPLEMENTED;
  372. }
  373. NS_IMETHODIMP nsContentViewer::SetEnableRendering(PRBool aEnableRendering)
  374. {
  375.     return NS_ERROR_NOT_IMPLEMENTED;
  376. }
  377.  
  378. /* attribute boolean sticky; */
  379. NS_IMETHODIMP nsContentViewer::GetSticky(PRBool *aSticky)
  380. {
  381.     return NS_ERROR_NOT_IMPLEMENTED;
  382. }
  383. NS_IMETHODIMP nsContentViewer::SetSticky(PRBool aSticky)
  384. {
  385.     return NS_ERROR_NOT_IMPLEMENTED;
  386. }
  387.  
  388. /* boolean requestWindowClose (); */
  389. NS_IMETHODIMP nsContentViewer::RequestWindowClose(PRBool *_retval)
  390. {
  391.     return NS_ERROR_NOT_IMPLEMENTED;
  392. }
  393.  
  394. /* void open (in nsISupports aState); */
  395. NS_IMETHODIMP nsContentViewer::Open(nsISupports *aState)
  396. {
  397.     return NS_ERROR_NOT_IMPLEMENTED;
  398. }
  399.  
  400. /* void clearHistoryEntry (); */
  401. NS_IMETHODIMP nsContentViewer::ClearHistoryEntry()
  402. {
  403.     return NS_ERROR_NOT_IMPLEMENTED;
  404. }
  405.  
  406. /* End of implementation class template. */
  407. #endif
  408.  
  409.  
  410. #endif /* __gen_nsIContentViewer_h__ */
  411.